package com.qf.controller;

import com.qf.pojo.TestProject;
import com.qf.pojo.resp.BaseResult;
import com.qf.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Package: com.qf.controller
 * @ClassName: UserController
 * @Author: lmr
 * @CreateTime: 2021/9/7 16:15
 * @Description:
 * @Version: 1.0
 */
@RestController
@RequestMapping("/test")
public class TestController {
    @Autowired
    private TestService userService;

    /**
     * 查询所有用户信息
     * @return
     */
    @RequestMapping("/findAll")
    public BaseResult findAll() {
        try {
            List<TestProject> userList = userService.findAll();
            return new BaseResult();
        } catch (Exception e) {
            e.printStackTrace();
            return new BaseResult();
        }
    }
}
